package com.hz.rouyigonggong.domain.basedomain;
/**
 * @Author tjh
 * @Date 2025/3/4 18:41
 * @version 1.0
 * @注释
 */

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ruoyi.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName BaseDomain
 * @Description TODO
 * @Author tjh
 * @Date 2025/3/4 18:41
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class BaseDomain implements Serializable  {

    @Excel(name = "创建人")
    private String createBy;
    @Excel(name = "修改人")
    private String updateBy;
    @Excel(name = "创建时间")
    private Timestamp createTime;
    @Excel(name = "修改时间")
    private Timestamp updateTime;
    @TableLogic
    @Excel(name = "删除状态", readConverterExp = "0=正常,1=已删除")
    private Integer deleteStatus;
    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();

    public static Integer getUserId() {
        return userId;
    }

        public static Integer userId;

        public static void setUserId(Integer userId) {
            BaseDomain.userId = userId;
        }
}
